<div class="modal fade" id="modal_modify" style="padding-top: 150px" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="myModalLabel">
                    历史版本(${listResult.remark.busName?default("")})
                </h4>
            </div>
            <div class="modal-body">
                <ul id="myTab" class="nav nav-tabs">
                    <#list listResult.list as history>
                    <li class="${(history_index==0)?string('active','')} ">
                        <a href="#${history.projectType}" data-toggle="tab">
                        ${history.projectType}
                        </a>
                    </li>
                    </#list>
                </ul>
                <div id="myTabContent" class="tab-content">
                    <#list listResult.list as history>
                    <div class="tab-pane fade ${(history_index==0)?string('in active','')} " id="${history.projectType}">
                        <form id="form_modify" class="form-horizontal" role="form">
                            <div class="form-group hidden">
                                <label for="firstname" class="col-sm-2 control-label">ID</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" id="queryId" name="versionId">
                                </div>
                            </div>
                            <div class="form-group">
                                <table class="table  table-hover">
                                    <thead>
                                    <tr>
                                        <th>版&nbsp;本&nbsp;号</th>
                                        <th>更新日期</th>
                                        <th>更&nbsp;新&nbsp;人</th>
                                        <th>注&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;释</th>
                                        <th>操&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;作</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                        <#list history.historyList?sort_by("revision")?reverse as svnHistory>
                                        <tr>
                                            <td>${svnHistory.revision?default("")}</td>
                                            <td>${svnHistory.dateTime?default("")}</td>
                                            <td>${svnHistory.author?default("")}</td>
                                            <td>${svnHistory.message?default("")}</td>
                                            <td>
                                                <!-- 项目状态 0 未初始化 1正常 2更新中 remark是返回的特殊结果集 -->
                                                <#if (history.enableStatus)=="2">
                                                    <button id="update" type="button" onclick="modifyRecord()" ${(svnHistory.flag=1)?string("disabled","")} class="btn btn-warning disabled">版本更新中</button>
                                                <#else>
                                                    <button id="update" type="button" onclick="modifyRecord(${history.id?default('')}, ${svnHistory.revision?default('')}, '${history.projectType}', ${listResult.remark.busId})" ${(svnHistory.flag=1)?string("disabled","")} class="btn btn-warning">${(svnHistory.flag=1)?string("当前版本","更新")}</button>
                                                </#if>
                                            </td>
                                        </tr>
                                        </#list>
                                    </tbody>
                                </table>
                            </div>
                        </form>
                    </div>
                    </#list>

                </div>


            </div>
            <div class="modal-footer">
                <button type="button" id="modalCancel" onclick="function close() {
                            $('#modal_modify').modal('hide');
                        }" class="btn btn-default" data-dismiss="modal">关闭
                </button>
                <#--<button type="button" id="button_modify" onclick="modifyRecord()" class="btn btn-primary">-->
                    <#--保存-->
                <#--</button>-->
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>